import Vue from "vue"
import App from "./App.vue"
import router from "./router"
import store from "./store"
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/style/reset.scss'
import '@/assets/style/common.scss'
import '@/assets/font/iconfont.css'
import * as echarts from 'echarts'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'zero-directive' // 自定义指令
import PortalVue from 'portal-vue'
import qs from 'qs'
import messageCommon from "@/tool/messageCommon.js"
import {GlobalMixin} from "@/minix/GlobalMixin";
Vue.prototype.messageCommon = messageCommon
Vue.prototype.$echarts = echarts
Vue.prototype.$qs = qs
Vue.config.productionTip = false
Vue.use(Element, { size: 'small' })
Vue.use(Vant)
Vue.use(PortalVue)

Vue.mixin(GlobalMixin)
if (process.env.NODE_ENV !== 'production' && location.href.includes('/mobile')) {
  const VConsole = require('vconsole')
  /* eslint-disable no-new */
  new VConsole()
}

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app")
